package haizhi.fruitmall.pojo.view;

import haizhi.fruitmall.enumeration.GoodsOrderByEnum;
import lombok.Data;

/**
 * @Date: 2017/12/24 21:52
 * @Author: Richard Zane
 */

@Data
public class GoodsOrderByView {

    private String orderKey;

    private Integer orderValue;

    public GoodsOrderByView(GoodsOrderByEnum goodsOrderByEnum) {
        this.orderKey = goodsOrderByEnum.getHint();
        this.orderValue = goodsOrderByEnum.getCode();
    }
}
